#pragma once
#include "BaseConstraint.h"

class CVolumeConstraint: public CConstraint
{
public:
	CVolumeConstraint() : CConstraint(4) {}
	~CVolumeConstraint() = default;

	virtual bool initializeConstraint(CParticleData& vParticleData, const std::vector<unsigned int>& vParticles, double vStiffness);
	virtual bool solveConstraintV(CParticleData& vParticleData) override;

private:
	double m_restVolume;
	double m_stiffness;
};